package com.correo.vista.server.windows.componentes.eventos.ventanasInternas;

import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import com.correo.vista.server.windows.ventanasInternas.DialogUser;

public class ActionWindowsUser implements WindowListener{

	private DialogUser 			dialogUser;
	
	public ActionWindowsUser(DialogUser dialogUser){
		this.dialogUser = dialogUser; 
	}
	@Override
	public void windowActivated(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowClosed(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowClosing(WindowEvent e) {
		dialogUser.getUserBean().setId("");
		dialogUser.getUserBean().setPasword("");
		this.dialogUser.setVisible(false);
		
	}

	@Override
	public void windowDeactivated(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowDeiconified(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowIconified(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowOpened(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

}
